package com.muyu.danmo.mapper;

import com.muyu.danmo.domain.DanmoUaweFollow;
import com.muyu.danmo.req.DanmoFollowUserListReq;
import com.muyu.danmo.req.DanmoUaweFollowReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户关注Mapper接口
 *
 * @author yangle
 * @date 2024-09-28
 */
public interface DanmoUaweFollowMapper
{
    /**
     * 查询用户关注
     *
     * @param id 用户关注主键
     * @return 用户关注
     */
    public DanmoUaweFollow selectDanmoUaweFollowById(Long id);

    /**
     * 查询用户关注列表
     *
     * @param danmoUaweFollow 用户关注
     * @return 用户关注集合
     */
    public List<DanmoUaweFollow> selectDanmoUaweFollowList(DanmoUaweFollow danmoUaweFollow);

    /**
     * 新增用户关注
     *
     * @param danmoUaweFollow 用户关注
     * @return 结果
     */
    public int insertDanmoUaweFollow(DanmoUaweFollow danmoUaweFollow);

    /**
     * 修改用户关注
     *
     * @param danmoUaweFollow 用户关注
     * @return 结果
     */
    public int updateDanmoUaweFollow(DanmoUaweFollow danmoUaweFollow);

    /**
     * 删除用户关注
     *
     * @param id 用户关注主键
     * @return 结果
     */
    public int deleteDanmoUaweFollowById(Long id);

    /**
     * 批量删除用户关注
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoUaweFollowByIds(Long[] ids);

    List<DanmoUaweFollow> followUserList(DanmoFollowUserListReq danmoUaweFollowReq);

    List<DanmoUaweFollow> concernUserList(DanmoUaweFollowReq danmoUaweFollowReq);

    void addFollow(DanmoUaweFollow danmoUaweFollow);

    void delFollow(DanmoUaweFollow danmoUaweFollow);

    DanmoUaweFollow selectFollowById(@Param("userId") Long userId, @Param("id") Long id);
}
